package com.hanamaki.basic.struct;

import java.util.Scanner;

public class For3 {
    public static void main(String[] args) {

        System.out.println("请输入一个正整数");
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        System.out.println("根据这个值 可以输出以下的加法表");
        for (int a = 0, b = i; a <= i; a++, b--) {

            System.out.println(a + " + " + b + " = " + (a + b));
        }

    }

}
